package ai.people.netmon.framework.exception.enums;

/**
 * @author yuanqinglong
 * @date 2022/3/9 10:43
 */
public enum ParamExceptionEnum implements ExceptionEnum {

    INSUFFICIENT_PARAMETERS(false, 100000, "参数不足！"),
    INVALID_PARAM(false, 100001, "非法参数！"),
    PARAMETER_PARSING_EXCEPTION(false,100002,"参数解析异常！"),
    PARAMETER_TYPE_MISMATCH(false,100003,"参数类型不匹配！"),
    PARAMETER_VALUE_OUT_OF_RANGE(false,100004,"参数值超出范围！");


    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    ParamExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public boolean getStatus() {
        return this.status;
    }
}
